package bb.lanxing.lib.devices.sprint.entity;

import java.io.Serializable;
import java.util.List;

import com.google.gson.annotations.SerializedName;

import bb.lanxing.lib.devices.core.sync.DeviceFile;

public class SprintMaps implements DeviceFile, Serializable {
    private long id;
    @SerializedName(alternate = {"provinces", "countries"}, value = "cities")
    private List<SprintMaps> maps;
    private String name;
    @SerializedName("name_en")
    private String nameEn;
    private long size;
    private String url;
    private int version;

    @Override
    public String getPath() {
        return null;
    }

    public SprintMaps() {
    }

    public SprintMaps(String str, String str2, long j, long j2, int i) {
        this.name = str;
        this.nameEn = str2;
        this.id = j;
        this.size = j2;
        this.version = i;
    }

    public String getUrl() {
        return this.url;
    }

    public void setUrl(String str) {
        this.url = str;
    }

    public void setName(String str) {
        this.name = str;
    }

    public void setId(long j) {
        this.id = j;
    }

    public void setSize(long j) {
        this.size = j;
    }

    public void setVersion(int i) {
        this.version = i;
    }

    public void setMaps(List<SprintMaps> list) {
        this.maps = list;
    }

    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public long getId() {
        return this.id;
    }

    @Override
    public long getSize() {
        return this.size;
    }

    public int getVersion() {
        return this.version;
    }

    public String getNameEn() {
        return this.nameEn;
    }

    public void setNameEn(String str) {
        this.nameEn = str;
    }

    public List<SprintMaps> getMaps() {
        return this.maps;
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        return obj != null && getClass() == obj.getClass() && this.id == ((SprintMaps) obj).id;
    }

    public int hashCode() {
        long j = this.id;
        return (int) (j ^ (j >>> 32));
    }
}
